import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';

import { HttpClientInMemoryWebApiModule } from 'angular-in-memory-web-api';

import { HomeModule } from './home/home.module';
import { SharedModule } from './shared/shared.module';
import { AboutModule } from './about/about.module';
import { UserModule } from './user/user.module';
import { AdminModule } from './admin/admin.module';

import { CoreModule } from './core/core.module';

import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { QuestionnaireMemoryDataService } from './shared/mock/questionnaire-memory-data.service';


@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,
    HttpClientInMemoryWebApiModule.forRoot(
      QuestionnaireMemoryDataService,
      {
        delay: 500
      }
    ),
    HomeModule,
    SharedModule,
    AboutModule,
    AdminModule,
    UserModule,
    AppRoutingModule,
    CoreModule,
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }
